package com.matt.docpro.model;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * Review
 * Created by on 2024/02/21.
 */
@Data
public class Review {
    String id;
    String patientId;
    String patientNm;
    String patientIcon;
    String docId;
    String docNm;
    int level;
    String content;
    String reply;
    Date reviewTime;
    Date replyTime;

    public String getFormatReviewDate() {
        return DateUtil.format(reviewTime, "yyyy年MM月dd日");
    }
    public String getFormatReviewTime() {
        return DateUtil.format(reviewTime, "HH:mm");
    }

    public String getFormatReplyDate() {
        return DateUtil.format(replyTime, "yyyy年MM月dd日");
    }
    public String getFormatReplyTime() {
        return DateUtil.format(replyTime, "HH:mm");
    }
}
